]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
altTab: Use 'switch-applications' for app switcher
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 23 Nov 2012 00:18:06 +0000 (01:18 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 5 Dec 2012 17:42:07 +0000 (18:42 +0100)
The Shell's alt-tab popup is application-based, so using the
'switch-windows' keybinding for it never really made sense.
Use the newly added 'switch-applications' keybinding instead.

https://bugzilla.gnome.org/show_bug.cgi?id=688913

js/ui/altTab.js
js/ui/windowManager.js

index b5872192349244fe1ea82d8252e08ad8eda495fb..95f2badddf10b31ace8fc272066012dc9821e09a 100644 (file)
@@ -127,7 +127,7 @@ const AltTabPopup = new Lang.Class({
             }
         } else if (binding == 'switch-group-backward') {
             this._select(0, this._items[0].cachedWindows.length - 1);
-        } else if (binding == 'switch-windows-backward') {
+        } else if (binding == 'switch-applications-backward') {
             this._select(this._items.length - 1);
         } else if (this._items.length == 1) {
             this._select(0);
@@ -158,9 +158,9 @@ const AltTabPopup = new Lang.Class({
             this._select(this._selectedIndex, backwards ? this._previousWindow() : this._nextWindow());
         } else if (action == Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD) {
             this._select(this._selectedIndex, this._previousWindow());
-        } else if (action == Meta.KeyBindingAction.SWITCH_WINDOWS) {
+        } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS) {
             this._select(backwards ? this._previous() : this._next());
-        } else if (action == Meta.KeyBindingAction.SWITCH_WINDOWS_BACKWARD) {
+        } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD) {
             this._select(this._previous());
         } else if (this._thumbnailsFocused) {
             if (keysym == Clutter.Left)
index f4e957838920cd2becd99ecadb96218fd6fef051..ef33fbc5264ae9cdfdd559af09febb64e18b2aec 100644 (file)
@@ -136,13 +136,13 @@ const WindowManager = new Lang.Class({
                                         Main.KeybindingMode.NORMAL |
                                         Main.KeybindingMode.OVERVIEW,
                                         Lang.bind(this, this._showWorkspaceSwitcher));
-        this.setCustomKeybindingHandler('switch-windows',
+        this.setCustomKeybindingHandler('switch-applications',
                                         Main.KeybindingMode.NORMAL,
                                         Lang.bind(this, this._startAppSwitcher));
         this.setCustomKeybindingHandler('switch-group',
                                         Main.KeybindingMode.NORMAL,
                                         Lang.bind(this, this._startAppSwitcher));
-        this.setCustomKeybindingHandler('switch-windows-backward',
+        this.setCustomKeybindingHandler('switch-applications-backward',
                                         Main.KeybindingMode.NORMAL,
                                         Lang.bind(this, this._startAppSwitcher));
         this.setCustomKeybindingHandler('switch-group-backward',